import { getAllRoleList, isUserExist } from '/@/api/demo/system';
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { Switch } from 'ant-design-vue';
import { setUserStatus } from '/@/api/demo/system';
import { useMessage } from '/@/hooks/web/useMessage';
import { h } from 'vue';
export const columns: BasicColumn[] = [
  {
    title: '用户id',
    dataIndex: 'userId',
    width: 120,
  },
  {
    title: '事件Id',
    dataIndex: 'eventId',
    width: 120,
  },
  {
    title: '签到时间',
    dataIndex: 'checkinTime',
    width: 120,
  },

];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'eventId',
    label: '事件id',
    component: 'Input',
    colProps: { span: 5 },
  },
  
];

export const signAttendanceFormSchema: FormSchema[] = [
  {
    field: 'id',
    label: '用户id',
    component: 'Input',
    required: false,
  },
  {
    field: 'userId',
    label: '用户id',
    component: 'Input',
    required:true,
  },
  {
    field: 'eventId',
    label: '事件id',
    component: 'Input',
    required:true,
  },
  {
    field: 'checkinTime',
    label: '签到时间',
    component: 'Input',
  },
  
];
